﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01_FromDecimalToBinary
{
   static class Program
    {
        static List<int> BinaryConverter(int decimalNumber)
        {
            List<int> binaryArray = new List<int>();
            if (decimalNumber == 0)
            {
                binaryArray.Add(0);
                return binaryArray;
            }
            while (decimalNumber > 0)
            {
                binaryArray.Add(decimalNumber % 2);
                decimalNumber /= 2;
            }

            binaryArray.Reverse();
            return binaryArray;
        }

       public static void PrintList(this List<int> current)
        {
            foreach (var item in current)
            {
                Console.Write(item);
            }
            Console.WriteLine();
        }

        static void Main(string[] args)
        {
            int number = int.Parse(Console.ReadLine());
            List<int> binaryArray = BinaryConverter(number);
            binaryArray.PrintList();
        }
    }
}
